home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / DCLAP 6d / dclap6d / corelib / ncbifile.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-05  |  4.2 KB  |  96 lines  |  [TEXT/R*ch]

  1. /*   ncbifile.h
  2. * ===========================================================================
  3. *
  4. *                            PUBLIC DOMAIN NOTICE                          
  5. *               National Center for Biotechnology Information
  6. *                                                                          
  7. *  This software/database is a "United States Government Work" under the   
  8. *  terms of the United States Copyright Act.  It was written as part of    
  9. *  the author's official duties as a United States Government employee and 
  10. *  thus cannot be copyrighted.  This software/database is freely available 
  11. *  to the public for use. The National Library of Medicine and the U.S.    
  12. *  Government have not placed any restriction on its use or reproduction.  
  13. *                                                                          
  14. *  Although all reasonable efforts have been taken to ensure the accuracy  
  15. *  and reliability of the software and data, the NLM and the U.S.          
  16. *  Government do not and cannot warrant the performance or results that    
  17. *  may be obtained by using this software or data. The NLM and the U.S.    
  18. *  Government disclaim all warranties, express or implied, including       
  19. *  warranties of performance, merchantability or fitness for any particular
  20. *  purpose.                                                                
  21. *                                                                          
  22. *  Please cite the author in any work or product based on this material.   
  23. *
  24. * ===========================================================================
  25. *
  26. * File Name:  ncbifile.h
  27. *
  28. * Author:  Gish, Kans, Ostell, Schuler
  29. *
  30. * Version Creation Date:   1/1/91
  31. *
  32. * $Revision: 2.10 $
  33. *
  34. * File Description: 
  35. *       prototypes for portable file routines
  36. *
  37. * Modifications:  
  38. * --------------------------------------------------------------------------
  39. * Date     Name        Description of modification
  40. * -------  ----------  -----------------------------------------------------
  41. * 04-15-93 Schuler     Changed _cdecl to LIBCALL
  42. *
  43. *
  44. * ==========================================================================
  45. */
  46.  
  47. #ifndef _NCBIFILE_
  48. #define _NCBIFILE_
  49.  
  50. #ifdef __cplusplus
  51. extern "C" {
  52. #endif
  53.  
  54. typedef FILE * (LIBCALLBACK *Nlm_FileOpenHook) PROTO((const char *filename, const char *mode));
  55.  
  56. FILE * LIBCALL Nlm_FileOpen PROTO((const char *filename, const char *mode));
  57. void LIBCALL Nlm_FileClose PROTO((FILE *stream));
  58. Nlm_sizeT LIBCALL Nlm_FileRead PROTO((void *ptr, Nlm_sizeT size, Nlm_sizeT n, FILE *stream));
  59. Nlm_sizeT LIBCALL Nlm_FileWrite PROTO((const void *ptr, Nlm_sizeT size, Nlm_sizeT n, FILE *stream));
  60. int LIBCALL Nlm_FilePuts PROTO((const char *ptr, FILE * fp));
  61. char * LIBCALL Nlm_FileGets PROTO((char *ptr, Nlm_sizeT size, FILE * fp));
  62. Nlm_CharPtr LIBCALL Nlm_FileBuildPath PROTO((Nlm_CharPtr root, Nlm_CharPtr sub_path, Nlm_CharPtr filename));
  63. Nlm_CharPtr LIBCALL Nlm_FileNameFind PROTO((Nlm_CharPtr pathname));
  64. Nlm_Int4 LIBCALL Nlm_FileLength PROTO((Nlm_CharPtr fileName));
  65. Nlm_Boolean LIBCALL Nlm_FileRemove PROTO((Nlm_CharPtr fileName));
  66. Nlm_Boolean LIBCALL Nlm_FileRename PROTO((Nlm_CharPtr oldFileName, Nlm_CharPtr newFileName));
  67. void LIBCALL Nlm_FileCreate PROTO((Nlm_CharPtr fileName, Nlm_CharPtr type, Nlm_CharPtr creator));
  68. Nlm_Boolean LIBCALL Nlm_CreateDir PROTO((Nlm_CharPtr pathname));
  69. Nlm_CharPtr LIBCALL Nlm_TmpNam PROTO((Nlm_CharPtr s));
  70. Nlm_Boolean LIBCALL Nlm_EjectCd PROTO((Nlm_CharPtr sVolume, Nlm_CharPtr deviceName, Nlm_CharPtr rawDeviceName, Nlm_CharPtr mountPoint, Nlm_CharPtr mountCmd));
  71. Nlm_Boolean LIBCALL Nlm_MountCd PROTO((Nlm_CharPtr sVolume, Nlm_CharPtr deviceName, Nlm_CharPtr mountPoint, Nlm_CharPtr mountCmd));
  72. void LIBCALL Nlm_SetFileOpenHook PROTO((Nlm_FileOpenHook hook));
  73.  
  74. #define FileOpen Nlm_FileOpen
  75. #define FileClose Nlm_FileClose
  76. #define FileRead Nlm_FileRead
  77. #define FileWrite Nlm_FileWrite
  78. #define FilePuts Nlm_FilePuts
  79. #define FileGets Nlm_FileGets
  80. #define FileBuildPath Nlm_FileBuildPath
  81. #define FileNameFind Nlm_FileNameFind
  82. #define FileLength Nlm_FileLength
  83. #define FileRemove Nlm_FileRemove
  84. #define FileRename Nlm_FileRename
  85. #define FileCreate Nlm_FileCreate
  86. #define CreateDir Nlm_CreateDir
  87. #define TmpNam Nlm_TmpNam
  88. #define EjectCd Nlm_EjectCd
  89. #define MountCd Nlm_MountCd
  90.  
  91. #ifdef __cplusplus
  92. }
  93. #endif
  94.  
  95. #endif
  96.